<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CityWeather extends Model
{
    //
    protected $table = 'city_weather';
    protected $guarded = [];

    /**
     * 获取城市
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function city(){
        return $this->belongsTo(City::class,'city_id','id');
    }
}
